package com.j2203.service.impl;

import com.j2203.entity.Game;
import com.j2203.entity.Img;
import com.j2203.mapper.gameMapper;
import com.j2203.service.gameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class gameServiceImpl implements gameService {
    @Autowired(required = false)
    private gameMapper gameMapper;

    @Override
    public Game gmbyid(int gid) {
        return gameMapper.gmbyid(gid);
    }

    @Override
    public List<Game> selectAll(int tid) {
        return gameMapper.selectAll(tid);
    }

    @Override
    public List<Img> selectAllpic(int tid) {
        return gameMapper.selectAllpic(tid);
    }

    @Override
    public List<Game> selectAll1() {
        return gameMapper.selectAll1();
    }

    @Override
    public List<Game> selectAll2() {
        return gameMapper.selectAll2();
    }


    @Override
    public List<Game> selectMohu(String gname) {
        return gameMapper.selectMohu(gname);
    }

    @Override
    public List<Game> fingAll() {
        return gameMapper.fingAll();
    }

    @Override
    public List<Img> selectc(int nid) {
        return gameMapper.selectc(nid);
    }
}
